using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Decav.Gatsb.Data;
using Decav.Gatsb.Application;
using Decav.Gatsb;
using Decav.Gatsb.Web;

public partial class StarbucksFinder : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Location[] allStarbucks = GatsbApplication.Current.FindLocation(LocationSearchCriteria.Parse("Starbucks"));

        foreach (Location starbucks in allStarbucks)
        {
            MapPushpin pushpin = new MapPushpin(Guid.NewGuid(), "Starbucks", starbucks.GeographicCoordinates);
            pushpin.DetailHtml = starbucks.Address.ToString().Replace("\r\n", "<br/>");
            map.Pushpins.Add(pushpin);
        }
    }
}
